import java.util.Arrays;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-03-09
 * Time:20:16
 */
public class main4 {
    public static void main(String[] args) {
        int[] array={1,4,2,3,7,65,5,9,7};
        Arrays.sort(array);
        System.out.println(Arrays.toString(array));

            //  可以省略列，不可以省略行
        int [][] array2=new int[3][];
        
        int[][] array1=new int[][]{{1,2,3},{2,3,4}};
        for(int[] tem:array1)
        {
            for(int t:tem)
            {
                System.out.print(t+" ");
            }
            System.out.println("\n");
        }
        for(int i=0;i<array1.length;i++)
        {
            for(int j=0;j<array1[i].length;j++)
            {
                System.out.print(array1[i][j]+" ");
            }
            System.out.println("\n");

        }
    }
}
